[PATCH v2 7/7] test: env: add test for env info sub-command