Fix unit test.

Fix hand written YAML being rubbish.
Fix bad reading caused by bad YAML.
Generify asList casting.