fix x509 test