added test for getting paginated results