UT for udp server and related fixes

checked for memleak in vizd too.