Add UDP/TCP connectivity tests.

@andresusanopinto @pthatcherg PTAL
nit: "params" is optional, so it should be prefixed with "opt_".http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Naming Possibly make it the last param.