test/example: Fix flakiness
test/example: Fix flakiness

The example test is flaky because `go ListenAndServe()`
is not always ready to accept connections by the time
we get to making the request.

To fix this, start a listener explicitly in a blocking manner,
and run the Serve goroutine separately.

uber-go/fx,uber-go/fx