Testing certificate

Wrote a few additional tests for certificate.rb