CMS-4405 Store group memberships.
Fixed unit test.