test in tmpdir