added test for getChanges()