add more complicated tests for lambdas and application