Make sure and agent can be assigned to an environment.