Added TcpConnection tests.
Merged test_tcp_client.{c,h} and test_tcp_server.{c,h} into test_utils.{c,h}.
Tests code clean-ups.