added tests for paging feature