making the 'undoWithOutPreviousCommandsThrowException' test pass