testing the pagination parts of the controller list action