test: use T.Setenv
to set env vars in tests
#1398
Merged
T.Setenv
to set env vars in tests
#1398