Revert "modify directory fot in-place test"

This reverts commit 8e85d80a60e0c7f3367f99cbd994106dcd52a4b6.