In the test of halogens from sodium extract, a small amount of conc. HNO3 is added. This is done to remove NaCN and Na2S, so that they do not interfere with the test for halogen. Therefore, dilute nitric acid is added before testing halogens to expel all the gases if evolved. Na+C+N