Added test for environment update

please review it
thanks
i believe you can drop the ```()``` from ```Environment()```