test calls to applyChanges