When an acid react with a metal, it liberates hydrogen gas.
For example:
Zn(s) + 2HCl(aq.) → ZnCl2(aq.) + H2(g)
To test the presence of H2 gas, bring a burning splinter near the mouth of the test tube where H2 gas is released, the splinter burns with a pop sound.