unit tests 100% coverage minus LDAP