Updated decoder test
Fixed decoding and encoding work