Refactor ldapcon.open() to _connect()
Add tests for ldapcon.close()