rafoctoring done for static_pages_spec.rb
faced some problem in pushing after refactoring