integration test for paging