Added tempdir test case.