Replace flexmock with mock in test_process_transactions.py