MOD: add multi-branch dispatching in TaskTest.