Testing immediate application of lambda