A Vitamin B6 test is done to find out any deficiency in the levels of this essential nutrient in the body. It is useful in determining the overall success of a vitamin B6 supplementation program and for the diagnosis and evaluation of hypophosphatasia.