Isolated the getGroup function as the source of the bug.
Fixed the group membership bug in Environment. Constraint 2 has now been
successfully refactored.