Tidy up the https test. Get it close to working.