fixup: add jasmine tests for updateWithUndo