add test for links in footer and header, refactor test for static_pages_spec.rb