Add tests for getUserGroups