close the ldap connection on config tests, too

fixes #411