Corrected testing of https