test/unit/canvas.js fix