Add test.check
Add test case for encode/decode on varint