small fixes in Lm
some method name changes and fix in test.