Fixed failing pagination tests.