The test is ordered when a patient exhibits symptoms indicative of a liver disease or has a history of conditions known to impact the liver, including jaundice, abdominal pain, fatigue, and swelling.