Wrote additional tests for certificate.rb