unit test pagination