You should move the test tube back and forth so that the heat will go over the liquid. You should not heat it stationary because the test tube might break
It should be slanted like 45 degrees angle so that if it burst,the chemical will not shower to your face(make sure to use a test tube holder so your hands will not get hurt).