Tests for unionRectangles, fix some typos.