Add tests for newPage and delPage.