finalizes ImapConnectorTest, refactores ImapConnector (#1)