json tests working