Only passing and logging extra env, not all of env, in tests.