add tests on input state change