fixed capybara and passed test