Added HTTPS tests.
Made https check nil safe.