Merge pull request #9463 from Dentomologist/fix_CreateTempDir_calls UnitTests: Add setup error checking