Fixed test that didn't work with HTTPS