added test case for TemporaryDirectory