Added test_grammar for unit test of CFG.js