Add additional yaml/xml tests, literalinclude them

instead of using inline examples in docstrings. With literalinclude, we
know the examples are tested.

Change-Id: I95fbb4726bd6731d9687d09a3d6e7d4e5a445131
Merge "Add additional yaml/xml tests, literalinclude them"