improving json tests