add unit test to detect the deletion of file path