test pagination
implement query page and pageSize arguments