corrected missing import and added subtest to identify optimal number of
threads in machines