api: fix SetEnv test in app with no units