LDAP: fix and extend tests

reparis and extends test broken by https://github.com/owncloud/core/pull/7284

cc @kabum @LukasReschke