fix this test for the new version of createDirectoryIfMissing (#2808)