Moves YAML tests to fixtures / files

This makes it easier for me to write test cases, rather than litter the
code with \n everywhere.
Properly represent data as tables
Add tests for tabular representation