Canvas.Rect unit tests