based number of threads in test on number of processors in order to speed up builds