Fixed test for udp socket. Socket was instantiated with wrong constructor.