The tests for Bile Salts and Bile Pigments (specifically Bilirubin) are used to assess the function of the liver and the biliary system (gallbladder and bile ducts). Abnormal levels in the blood or urine typically indicate liver disease, gallbladder problems, or issues with red blood cell breakdown.