Added tests to cabal file, expanded tests for the decoding and re-encoding.