Fixed bugs related to DirectoryTree and HDD. Added extensive test to HDD Test.