fix CHECKS in test
move env to release