Improve protocol consolidation tests for docs (#7119)
Improve protocol consolidation tests for docs (#7119)

`Code.get_docs/1` calls `:code.get_object_code/1` with the module and
this returns the old binary instead the consolidated one.
kimshrier/elixir,pedrosnk/elixir,ggcampinho/elixir,lexmag/elixir,lexmag/elixir,gfvcastro/elixir,ggcampinho/elixir,kelvinst/elixir,elixir-lang/elixir,michalmuskala/elixir,kimshrier/elixir,joshprice/elixir,kelvinst/elixir,pedrosnk/elixir,gfvcastro/elixir