[COOK-3104] - fix environment_variables test

* Set the environment_variables attribute in the cron namespace
* Use a better regular expression to match the environment_variables