Added YAML parsing and test