Add a new paging function with UnitTest