Fix RLP implementation
+ add unit tests