This test is used to detect lactose intolerance. Lactose intolerance is the inability to digest lactose, the sugar found in dairy products such as milk and other dairy foods. Lactose intolerance typically leads to symptoms such as gas, bloating, diarrhea, or cramping when dairy products are digested.