Refractored the test for the static pages and also put test for titles