fix capybara tests