fixed temporary directory creation setup and teardown