api/util/json_test: refactor monolithic TestJSONAPIHandler into individual tests