This should probably use `Tempfile`, like your other tests.