adding tests for lambdas as conditions