net: add test for Dial and Listen arguments

R=dave, bradfitz
CC=golang-dev
https://codereview.appspot.com/7305081