Fixed test cases to make them green. Fixed updating text of ranges and text documents. Some tests are still failing, but I am trying to fix them.