Checks Stat on the directory before creating the file to make sure that it does not exist Properly cleans up after the test.