FIX numerous (but not all) jasmine tests
add jasmine tests for updateWithUndo