Added dart code for lambda tests