tempdir stuff for tests [skip ci]