test/Tmpdir: Wrapper class for running code in a temporary dir

Not used yet.