Fixed SSL certificate check in unit test.