Fix task engine tests.