Scientists have developed a new diagnostic test for tuberculosis that experts say could help control the disease in the developed world by more accurately detecting infections before people get sick.