Hydrogen gas is liberated when an active metal reacts with hydrochloric acid.
For testing the presence of hydrogen gas, bring a burning candle near the mouth of the test tube in which the reaction is taking place. If the gas burns with a popping sound, then it can be concluded that it is hydrogen.