Refactor Rspec for the static pages