add unit tests for mkdir. add more comments