testing pagination and rest