Teardown files for test_dir

As per #157. If you think this can make it, then I'll add a test case as well.