added tests using capybara