modified 'patch' tests in order to use parsed json objects instead of strings to prevent sorting issues