test: TestResource should check for presence of ENV vars.

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