Fixed a typo.
Added specs for CertificateValidation.