Fixed multithreading
Implemented basic client functional
Reworked some tests
  TODO: Fix tcp connection fails in tests