replaced tmpdir magic with fixtures