add tests for syntax def
Merge pull request #378 from guillermooo/new-test-syntax-def

add tests for syntax def