Fix for certificate test