Test that CanvasManager tracks canvas memory costs and is notified of changes.