export decode
Add decoding tests