Add some tests for render/view.

The single cursor tests are failing, probably due to a bug in text.Region.Intersection.
ViewRegionMap still needs testing.