Pass total number of tests as expicit parameter to subprocesses, so it works on Windows