Added script for testing the decoder parser. Modified decoder to write
the padding byte in data chunk