making 'undoReturnLastCommand' test pass