initial tests working for applyPatch