More tests for LdapPlugin

Some more tests for LdapPlugin.