add tests on input state change
fix description and test
add test on input value mode
Merge pull request #763 from deniak/input-change-state

add tests on input state change