Added test for environment update

Added test for environment update