Make test for HTTPS mode more correct.