test cases for object changing