Refactor test
Support unique_id for new API
Make encoding rubust
No need for another hash allocation
Bump v0.0.2