update tests to use totalprocessorcount