Fix test_monitor