changes in rmdir and test command