Fix bug in parallel speedup in ctest.