Fix a test bug for process_transactions