creates test for decode
decode function passes test