Addded some tests for incorrect cases, other parser crash fixed
Merge pull request #1343 from qreal/parser-fixes

Addded some tests for incorrect cases, other parser crash fixed