checking if environment is updated correctly