LDAP-295: Fix tests