Added unit test for paging.