test for three array syntax error conditions; split out json AST construction tests and error tests into separate test module