use the spec env for the executor spec examples
added a utility method to use the env with eg examples