move Environment testing into Environment class, make Enterpeter a self-testing class