fixed a linux compatibility issue in the UDP test cases