fix: setup_environment
integration test
#1196
Merged
setup_environment
integration test
#1196