Answer:
Heating the test tube at the top allows any gases formed to escape without forcing liquids on top of the gas out of the tube. Heating the tube at an angle reduces the pressure on the heated substances again allowing the gases to escape harmless into the air.