test cases for lambda added