Fix serialization issue in TypedPipeWithOnCompleteTest