tests and paginate