Added test for environment update

please review it
thanks
Drop this line, please.