added test cases for change function