add test for decodeTask