fix mocha test in Wallet  & Identity