Added tests for all Dir file operations.

*Dir.Rename now recreates the dir map, so child paths are also updated.