Added unit test for getPage()