Barium carbonate is white and insoluble in water so if you carry out a sulfate test on a carbonate, you will get a white precipitate too . Therefore it is important to carry out the carbonate test first and only continue to the sulfate test when you know that no carbonate is present