api/util/json_test: use JSONAPIErr to fix test