Supress the "invalid json" error messages in the unit tests.

@jedp - could you review this one?

fixes #3290