Test for certificate chain API