test: Test CLI apps, env and run.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>