fixes/improves some more tests for ldap backend