If you place the unit really close to the hero as he walks by, he can gain XP without taking much HP loss.
Great tip!