added integration tests using capybara