Added a test for TcpTransport

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>