More Unit Test work
Bug fix for the test extension

It was trying to read the char at the end position of the ITextSnapshot.
This was causing an exception as that's an illegal operation