added test for case if two directories have the same name at same level.