Add some protection in tests based on watchdogs.