Add tests for part of the classes for authenticating via LDAP

Not all features are tested, but the biggest method from LdapAuthenticatable
is tested. The other things that should be tested are already there as pending
tests.

refs #246