restapi query paging tests