Interchangeable heads for hydraulic testing of pipes