Added test for environment update