final function of testing of decoding