finish rmdir() and add test case.