added capybara testing for search