Add testing to ApiPaginationListener