adding ZD 3056 fix for titanium resume, and changing API's to pass on only payload and error respectively to callbacks, changed tests accordingly