Refactored signature of ValidateMetadataIn method. Added some test coverage on DirToDoList