Added lcltemp function
added lcltemp test