Why do we add copper when testing a salt for nitrate ion?
This is a preliminary test, which is neither particularly selective nor sensitive.
With nitrate, brown vapours of $\ce{NO2}$ are released.
However, bromine or iodine could also release brownish or violet vapours.
Copper (or silver) is used to remove bromide and iodide by precipitation.