Added test suite for AST and json functionality