Simple test case to ensure that traces are flushed until the exception.

Not actually automated yet.