Unit Test for Trace Detection