Addded some tests for incorrect cases, other parser crash fixed