pagination with tests