Add query tests for pagination and sort key ordering

Change-Id: I64fc2dc6c0bafa446dfde7ab91b0c1be61aa7c4f
3 files changed