Add unit tests for openldap::server and fix bug