added tests for ldap plugin