Added TestYamlNode. Random fixes. Started using Mockito in tests.