fix tests to consider savedChanges