refactor  rspec for the homepage tests