Tom added tests for new addPage method.