refactor RSpec tests for static pages