Added capybara and rspec gems and wrote tests