Add tests for recent SSL changes