adds pagination support to query_parse test