added test case for sending bytes through tcp connection