Add test for injecting diagnostic consumers into a ClangTool.

As suggested by pcc on 194226.