Fixed grammar for lmap key words
added tests for lmap