fixing capybara tests