test cases for on change handlers