Fix TestReplicatedInvocation.