Added page test logic to main.handlebars