Remove test.

Also pass makedirs correctly.
Merge pull request #12164 from cachedout/fix_file_test

Remove test.