Adds threads option to the tracetest
Merge pull request #1869 from yurydelendik/tracetest-threads

Adds threads option to the tracetest