[#24] Ensure tests always write into tmpdir