Added tests for lambdas