The sodium bicarbonate test is used to distinguish between aldehydes (which react with sodium bicarbonate to form carboxylate anions) and carboxylic acids. CH3CH2COOH (a carboxylic acid) reacts with sodium bicarbonate, while CH3CH2CHO (an aldehyde) does not.