added test for downloading from https