Move yaml_ok() into test_yaml_perl()

This function was only used once, so this commit inlines it into
the TestBridge