Refactored title string tests for static pages.
Added helper to construct page titles.