Fix pagination tests