Stress tests have been conducted in many countries to gauge the vulnerability of banks to key shocks.