api/util/json_test: update to pass testing.T instance