Add first APITest mockup
Add SocketMock and refactore API
Remove unnecessary code in SendMessageTask
Refactor mock classes
Merge branch 'add-unit-tests'