you should carry out tests in order of carbonate test , sulfate test and then halide test . This is because barium ions form an insoluble precipitate of BaCO3 , if you didnt rule out carbonate ions you wouldnt know if the precipitate of this was carbonate or barium sulfate .