included tests for replacing canvas.offset