Making pagination tests pass