To a test solution, add barium chloride solution and then add excess dilute hydrochloric acid or nitric acid.
If a white precipitate is formed which is insoluble in excess acid, then the substance contains a:
SO3²⁻.
SO4²⁻.
NO3⁻.
CO3²⁻ or HCO3⁻.