refactor ssl tests
Merge pull request #390 from jschneier/refactor-ssl-tests

refactor ssl tests