Add asserts for bounds on diagnostics
Fix the error spans issue
Merge pull request #651 from Microsoft/testForDiagnosticBounds

Add asserts for bounds on diagnostics