added functionality to call undo on remote from the appInvoker class with tests