Added setLogger usage, added DirectConnector test