Tests must not call TestCase.fail() method as YAML can't represent this object