Make necessary changes to add capybara support for rspec tests