Added test for maximum number of pages