Updating setMaxPage issue leading to test failure