Merge "Improve test coverage of IMM#invalidateInput()"