Logout integration test
Fix compatibility of non-integration tests with capybara