api/util/json_test: add test case for MethodNotAllowed