Modify test to handle HTTPS mode.