refactor ssl tests