[Tests/Pagination] Extended tests and improved structure; fixed bug in pagination.