It is surprising that B16.5 does not have a factor for extreme/accidental cases. I have seen many flange designs where the loading on the flange is taken close to the allowable pressure for normal design conditions. Any additional temporary loading would therefore take it over that limit and the hydrotest case has already shown that the flange can cope with 1.5 rated pressure. Pipeline design codes often allow lower safety factors during an accidental temporary condition so the same approach for flanges would seem sensible.
I have noticed before that B16.5 flanges fail the ASME VIII calculations. I have always found this is driven by the ASME VIII approach of using low allowable bolt tensions and low allowable stress for the flange material. As soon as you put real world bolt tensions in, the stress is above allowable. However, ASME allows for this. Appendix S states "The maximum allowable stress values for bolting given in Table 3 of Section II, Part D are design values to determine the minimum amount of bolting required. However, a distinction must be kept carefully in mind between the design value and the bolt stress that might actually exist. It is evident that an initial bolt stress higher than the design value may and, in some cases, must be developed in the tightening operation and it is the intent of this Division that such a practice is permissible, provided it includes necessary provision to insure against excessive flange distortion".
Indirectly, ASME is saying that the stress in the flange can go higher than the limits specified in the ASME VIII method provided, it can be demonstrated that the flange does not distort and will not leak. Sadly it gives little guidance on how to demonstrate this. I see the ASME VIII limits as something that should be applied if you are designing a new flange, but not necessarily for assessing an existing flange. My belief is that the calculation approach from ASME is valid but for 'real' world cases, the engineer can look to apply higher allowable stress than the limit of 2/3 SMYS or SMTS/3.5. Previously, I have seen flanges operate successfully where the design checks have been carried out ensuring flange stress < 80% SMYS and the bolt tension is above W1 (bolt load required for working pressure). In fact, it is common practice for installation contractors to tighten flange bolts to approx. 70% SMYS as a default value. This can take the flange body stress over 80% SMYS and yet the practice appears to have worked successfully for many years.