Fix unit test for HTTPS