LDAP-266: A couple of detailed unit tests for SimpleLdapRepository, along with fix for bug found in said tests.