added a test for decodeTask