Unit and functional tests for LdapTest