fix a few bugs in rspec/capybara