fix error_like function to respect test label argument
Allow YAML without trailing newline