Added test for Lm_seg