Fix test failure caused by tasks not having IDs