add test for walletOffset encoding