fix test-env.sh according to impl.md