LDAP: fix and extend tests
Merge pull request #7312 from owncloud/ldap_fix_add_test

LDAP: fix and extend tests