Carbohydrate identification and testing