add tests for paging