Added TestYamlException, improved other unit tests.