Does this write temporary files? Then instead of `def test` we could use a `test do` block, which `cd`'s into a temp dir (that will be cleaned afterwards).