Fixed SocketCommunication and included test cases

Removed Lock and Mutex