Bug 885145 - Add invalid json tests; remove extra imports, r=ahal