only test parallel if detectCores()>1