Refactored to use tart-tracing in tests.