If you are replacing an existing component, or repairing existing piping you may be able to get away with an inservice test with AI approval, that is system pressure. There are also other NDE options in lieu of hydrotest.
If you are procuring a new component have it tested off-site then at site...