Added unit tests for connector.