Improve ebnf syntax test