Fix yaml.v1 dependant tests

The latest changes of yaml.v1 make some tests using string comparison fail. Those have been replaced with the usage of YAMLEqual of github.com/juju/testing/checkers.