Refactor tests for static pages and add checks for the links on each page