added functionality to add controller object to remote object via appinvoker class with tests