Make TestJSONMethod test more DRY

Since this test uses the same method for all the tests, you should
define it as `@method` in `setup.`