Unit test for the trace benchmark.