Add test for existing directories to mkdir feature