I believe this is the reason to put flag definition in `init()`:

>  init(), unlike main(), is called when you run unit tests using "go test" for your package.