UT for udp server and related fixes