add a test for fix_https method