libyaml: add test

Closes #35353.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>