A liver function test is performed to determine the health of the liver by measuring the levels of bilirubin, liver enzymes, and proteins in the blood. The liver functions test also helps to detect or monitor liver diseases such as hepatitis. The liver´s main responsibility is to get rid of harmful toxins, convert nutrients, produce cholesterol, fight infections, maintain hormone balances, and store minerals and vitamins.