added new syntax error support and unit tests for checking syntax errors