The main diagnostic test for obesity — the body mass index — accounts for only height and weight, leaving out a slew of factors that influence body fat and health.