JSON string comparison in unit tests patched