Anthraquinone glycosides such as the sennosides are hydrolysed and the free anthraquinones extracted into an organic solvent, and on shaking with ammonia the phenolic aglycones ionise to give a pink to red colour in the ammoniacal layer, which is Borntrager's test. A modified version adds ferric chloride and hydrochloric acid to break O-glycosidic links before extraction. The other reagents test different classes: Molisch detects carbohydrates, Dragendorff detects alkaloids and Fehling detects reducing sugars, so the colour and the class it indicates must be matched correctly.