test_ssl_mode should get current mode as well