Add a negative test case for CertificateSetting