Fixed unittests for incoming jsonpatches after refactoring.