test: simplify wallet_basic and rpc_getblockfilter tests

bitcoin/bitcoin: PR #36914

The review is inconclusive; no findings were published.

Coverage details