updated certificate_spec.rb