Added tests with capybara