This reverts part of 91497348bf
91497348bf
Instead of just checking that the line of the error message is correct, assert that start and end position are on the correct character offset. Also fix all the tests to conform to this.
I have not tracked down in detail where all these changes originate, this commit just gets things back to working again.