Asserts added to Graphics.curveTo test