Added test for environment update

please review it
thanks
When updating an environment, do you need to supply both the old and new names? And with these keys? That doesn't make sense to me. Something like this would make more sense to me:

    result = Environment().update({'name': new_name'})

And how does this command know which environment needs to be updated? I don't quite understand this.