testing data transmition and decoding