More tests for yaml_parse + minor cleanup