a few more encoding tests
add basic decoding tests