Add unittest: Pagination