Added test to change environment