added functionality to activate a controller on the remote in the appinvoker class with tests