exec/testing: implemented GetEnvs for command.