Add negative test for json (see #158)