Add a test for the certificate callback