Fixed the test failure in tasks.d