add decoder test support in script