Zhiyi Zhang (@zhiyi) commented about dlls/user32/tests/monitor.c:
} flush_events();
expect_dm(&dm, devices[device].name, 0, FALSE);
expect_dm(&dm, devices[device].name, 0);
I think you can add the tests last so these back-and-forth changes can be avoided.