Clean up file creation tests

Never mock/stub system APIs. Even worse if you're not directly using it, but
only relying on them down the line.