A docstring explaining that you're testing that invalid pages go to the last page would be appreciated.