Added rspec tests using capybara