Refactors paginator tests.