changed test and updated for switch to https as default