Added tests for env upgrade.