Added dynamic construction of page object within template
Added basic unit tests for template