changed capybara test to familiar testing syntax