change capybara and fix tests on ci