Fix test_monitor_transaction