Is it okay to heat a test tube for several minutes for evaporation of solvent inside?
There are two issues here:


Heat from a Bunsen burner is pretty strong. You better make sure whatever is left after the evaporation will survive.
If the solvent is organic (and not super halogenated), this is a terrible idea because you run a serious risk of igniting your solvent vapors.