testing tcp connections