fix test and add udp listening