Fix wrong test which changed system env

Test changed environment, affecting all other tests. Fixing that. Might cause build to fail, but it is the right thing to do.
Expected an assignment or function call and instead saw an expression.