Improvements and more test cases for the LDAP store.