test: Add ENV tests.

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