Some tests for matchCertificate