Remove ENV usage from tests.