Add typescript source for the 46 tests added last time.
Add 2 more tests (rectangle utils).