fixed NewTransport example code

I'd prefer we remove the inline examples. Most cases are covered by `example_test.go`.