add test and fix up net handling of modern connection opts, fixes #383