StressGuy: I am far from a code expert so please examine what I say carefully and make sure I have not mis-spoken!
Previous versions of the code were similar to the requirements of ASME VIII div 1 for pressure vessels: hydrotesting was carried out at 1.5 (rather than 1.3 for section VIII) times the design pressure times the LOWEST ratio of stresses for materials at the test versus the design temperature. We have in past included the flange bolting in that consideration (to avoid yielding them), whose materials seldom had a ratio of stresses much greater than 1 except at very high temperatures, but that's a bit of a gray area.
The NEW revision of the code states as follows (quoted with added paraphrasing below):
345.4.2 Test Pressure Except as provided in para. 345.4.3 (MM note: this para regards testing of piping connected to a pressure vessel where disconnection therefrom is “impractical”), the hydrostatic test pressure at any point in a metallic piping system shall be as follows:
a) not less than 1.5 times the design pressure
b) when the design temperature is greater than the test temperature, the minimum test pressure, at the point under consideration, shall be calculated by equ. (24) . When the piping system contains more than one material or more than one design temperature, eq. (24) shall be used for every combination, excluding pipe supporting elements and bolting, and the maximum calculated value of Pt is the minimum test gauge pressure.
PT = 1.5 PRr (eq 24)
Where
P = internal design gage pressure
PT = minimum test gage pressure
Rr = ratio of ST/S for pipe or components without established ratings, but shall not exceed 6.5
= ratio of the component pressure rating at the test temperature to the component pressure rating at the component design temperature for components with established ratings, but shall not exceed 6.5
S = allowable stress value at component design temperature (see Table A-1)
ST = allowable stress value at test temperature
Alternatively, for carbon steel piping with a minimum specified yield strength not greater than 42 ksi (290 MPa), the test pressure for the assembly of components, excluding pipe supporting elements and bolting (i.e. pipe, fittings, valves, flanges) may be based on Rr for any of the components in the assembly
c) if the test pressure as defined above would produce a nominal pressure stress or longitudinal stress in excess of the yield strength at test temperature or a pressure more than 1.5 times the component rating at the test temperature, the test pressure may be reduced to the maximum pressure that will not exceed the lesser of the yield strength or 1.5 times the component ratings at test temperature. (see paras. 302.3.2(e) and (f)). For metallic bellows expansion joints, see Appendix X, para X302.2.3(a)
(end quote)
We'll be relying on c) a lot more in future!