TCP: Added some unit tests