old_contents: def emulate_catchup(replica, ppSeqNo=100):
      replica.on_catch_up_finished(last_caught_up_3PC=(replica.viewNo, ppSeqNo),
                                   master_last_ordered_3PC=replica.last_ordered_3pc)
  
  
  def emulate_select_primaries(replica):
      replica.primaryName = 'SomeAnotherNode'
      replica._setup_for_non_master_after_view_change(replica.viewNo)
  
  
  def expect_suspicious(replica, suspicious_code):
      def reportSuspiciousNodeEx(ex):
          assert suspicious_code == ex.code
          raise ex
  
      replica.node.reportSuspiciousNodeEx = reportSuspiciousNodeEx
  
  def register_pp_ts(replica, pp, sender):
      tpcKey = (pp.viewNo, pp.ppSeqNo)
      ppKey = (pp, sender)
      replica._ordering_service.pre_prepare_tss[tpcKey][ppKey] = replica.get_time_for_3pc_batch()
  
new_contents: def emulate_catchup(replica, ppSeqNo=100):
      replica.on_catch_up_finished(last_caught_up_3PC=(replica.viewNo, ppSeqNo),
                                   master_last_ordered_3PC=replica.last_ordered_3pc)
  
  
  def emulate_select_primaries(replica):
      replica.primaryName = 'SomeAnotherNode'
      replica._setup_for_non_master_after_view_change(replica.viewNo)
  
  
  def expect_suspicious(replica, suspicious_code):
      def reportSuspiciousNodeEx(ex):
          assert suspicious_code == ex.code
          raise ex
  
      replica.node.reportSuspiciousNodeEx = reportSuspiciousNodeEx
  
  def register_pp_ts(replica, pp, sender):
      tpcKey = (pp.viewNo, pp.ppSeqNo)
      ppKey = (pp.digest, sender)
      replica._ordering_service.pre_prepare_tss[tpcKey][ppKey] = replica.get_time_for_3pc_batch()
  
subject: fix the last test