Syntax error in LDAP exception test