Update and add test cases
Merge branch 'fixSpeculativeParse' of https://github.com/Microsoft/TypeScript into fixSpeculativeParse