Added test for API query representer