Finished basic tests for LDAP code.

Still need to add the queries to simplify things.