migrated Rect and Blob tests to Mocha