Refactor test script

All static pages have common test for heading and title
Verify that all links work