This is failing in the tests as `h.certname` will return the name if not defined.  Perhaps use `.read_attribute(:certname)` or assert_equal to the name?