working on a basic test of encoding/decoding