Why does it matter if `TEST_DIR` is a directory here?