please see attached patches.
1st patch adds unit test for sdap_nested_group_hash_group()
2nd patch refactors sdap_nested_group_hash_group()
While working on the test I found what I think may be a bug in
Part of function definition consists of following:
ret = sysdb_attrs_get_int32_t(group, SYSDB_GROUP_TYPE, &ad_group_type)
ad_group_type is bitmask for AD group types and may contain
which can't be stored in 32 bit integer.
In second patch I changed type of ad_group_type to uint32_t. But without
this change tests will fail because sysdb_attrs_get_int32_t() will