replacing ProcessInstanceResult with InstanceResult, fixing processUpdate test, adding test to feed update

If as per old semantics if this method was called with n, now it needs to be called with n-1.
This has lead to a bunch of failures. All the callers of this function needs to changed.