updated and fixed capybara tests