Added specs for yielding to a lambda.
Set lambda flag when yielding to a lambda.