Do not test tmpDir.mkdir, it should be created already.