added rspec and capybara tests