Reduce the number of threads in UT to avoid error on OSX (Ubuntu works fine with higher number of threads)