unit test for undo method 'undoWithOutPreviousCommandsThrowException', test fails