Nitrogen, sulphur and halogens are tested in an organic compound by Lassaigne's test.
The organic compound is fused with sodium metal as to convert these elements into ionisable inorganic substances, Na+C+N→NaCN 2Na+S→Na2S 2Na+X2→2NaX
The cyanide, sulphide or halide ions can be confirmed in aqueous solution by usual test.