Add name attribute to capsule environment
Change generator object to an environment
Update tests