added unit test for YAML load exceptions, corrected broken tests