Added test for environment update

please review it
thanks
Change `self.assertEqual(len(result.stderr), 0)`

Add assertion for the new name `self.assertEqual(result.stdout['name'], new_name)`