Add a few drops of HCl to the sample in a test tube, connect this test tube to a test tube of limewater. If carbonate ions are present, they will react with the acid to produce carbon dioxide which will turn the limewater cloudy when it is bubbled through.