Added tests for the page sub-generator

resolves #9