Cu+2 gives black precipitate in presence of dil. HCl Ni+2 ions gives black precipitate in presence of NH4Cl +NH3
with HCl S2− concentration is not just sufficient to overcome the solubility product of NiS.
Cu+2+H2S→dil.HCl(black)Cu2S↓+2H+
Ni+2+H2S→NH4ClNH4OH(black)NiS↓+2H+