Fixed unittest for jsonpatch after changes in errorhandling.