Control the number of threads in TestExecutor