Updated tests to use a local tmpdir