Fix tests for raven

- If tests are run then import raven is disable
- Fix imports in test_cailometer