Test for the json form of the warnings/errors.

These tests still need to be thoroughly proofread before I am
confident that the expected output is correct.
Tests of embedding JSON messages, but broken.

The refersTo field of the JSON outputting tests is bogus.
Tests pass, but should not.
Testing for more reasonable looking paths in refersTo elements

The test suite could still use double checking...