Issue #35

I fix issue #35 (LDAP errors) and rewrite the existing JUnit test case
as Spock specification.  I also fix some minor problem that occurred
during the tests.