Adds threads option to the tracetest