Added environment delete test

please review it
thanks
As you are asserting for the stderr length greater than 0, so the message should be `There should be an exception here` as you expect it to have an exception there. Remember that the message will be display when the length is <= 0