add test & cover commands
require global variables explicitely
add tests for the socket.
Merge pull request #4 from uber/0.0.4-dns-recovery.tests

[DNS Recovery]: Add a set of tests for the UDP socket module.