Added x509 reconnect test