[PATCH v4 4/4] test: env: add test for env info sub-command