Cobalt chloride is most frequently used to test the presence of water. This is used to detect leaks in pipes and other supposed to be close containers like porcelain. The limewater test is used for testing the presence of carbon dioxide (CO2). This is used most commonly by the students to learn the chemistry of the common gases.