simplify http/https environment variable tests