Fix tests in ldap registration