test decoding