Patches to TestSuite

Various patches. Also did a minor change to the `Mesh` class which I decided to stick on the tip of the branch. Most changes are internal, but one changes the `Rectangle` API (2579729)