fixed a bug in the rlp decoder, added test