adds test for temporary directory