Fix and add ssl test.