Fixed several bugs and added more unit tests for ldap class