Fix testsuite failure for https mode