Add a test case for queryChunked