remove capybara from tests and fix