fix tests for new rspec/capybara versions