[testDBTablesMonitoring] Make test_getNumberOfAllBadTriggers() pass.

Althogh the test passes, we're still using isInHostgroup() that
refers old test materials. We'll fix it next.