fixed test

- changed verification behaviour, if the environment variables are not
set -> some travis builds don't have them