added tests for resetChanges