Unit test for Lambda expression