[IMP] attempt to improve yaml test message in order to make its errors somewhat less cryptic

and make it easier to understand why it's whining.