Disable a trace during unit testing.