Added syntax object to tests
Added test for Syntax#hasErrorDuplicate