Refactors JSON test suite.