JSHint fixes for undo tests.