Fixed capybara tests