adds test cases for error messages; fixes #1; actually comment-json already throw the same error messages as JSON.parse