Clean up test code.  Add some handling on getPage.