Fixing error json tests