[core] Fix LDAP and useradmin group list tests