In tests for setting SSL and SSL_CTX options, get current options first

Fixes #1352
test_ssl_mode should get current mode as well
Merge pull request #1355 from reaperhulk/fix-1352

when setting SSL and SSL_CTX options in tests get current options first