thread env change in through test