Explicitly set number of required threads in test.