That’s an “albeit” you could drive the second largest bank failure ever though. If I have $100k of net assets and I lose $10k due to interest rate increases, I’m fine. If I have $100k but I lose $150k due to interest rate increases, then I’m only fine if I have some other source of income before whatever debt I have comes due.
SVB was only capitalized fine in a universe in which they could maintain a large non-interest-bearing deposit volume, and make adequate profit on it, for long enough to erase the hole in their balance sheet before their bonds matured and they would inevitably be forced to realize their loss. Or if their implicit gamble that rates would go back down would pay off. (Of course, the latter also reduces the income from said non-interest-bearing deposits.)
I don’t know how bank stress tests work, but I sure hope they would notice that the bank’s liabilities exceeded their assets even assuming said assets could be sold calmly and at favorable prices. And no, “I’ll hold them to maturity so they’re worth 20% more than they are actually worth” should not be part of that calculation.