Added plain auth, ldap tests and fixed issue with reconnect on single server