update tests to properly validate json parse errors