add test for udp socket provider and fix getinfo typo

This adds a unit test for the UDP socket provider, invoked by:
grunt unit

(there's already a test target -- I'm open to suggestions for a better title)