added test case for modifying original object