applyChanges test