Fixed tests. Added another to test for generated Exceptions when YAML itself is badly formatted.