added unit test for paging