Fully working pagination test