fixed wrong lmeasure execution + tests