added tests for trace2