The SMA test is not always necessary for diagnosing autoimmune liver diseases, as there are other diagnostic tests available, such as liver function tests and specific antibodies. The decision to use the SMA test depends on the healthcare provider's clinical judgment, the patient's symptoms, and the specific diagnostic approach they choose. The SMA test is just one tool among several for diagnosing these conditions.