Fix test statement
Dont clobber set env vars in session mode