add tests to the ldap code