HDWallet: use assert.throws