Add a WaitForNotificationWithTimeout method.
Limit the time task_test can run.

A bit cheap, but should be effective (and informative)...