added unit test for ssl and updated coverage