Fixed a few issues with the recent UndoManager unit test changes.