[core] Fix LDAP tests