fix(socket): fix callbacks for unit tests
refactor(connect): change connection responsibility from app controller to the connecting controller