Add spec for groups helper.