test: fix wallet tests that check the wrong wallet

bitcoin/bitcoin: PR #36863

The review is inconclusive; no findings were published.

Coverage details