WIP: Test hash encoding/decoding.