Add delegate and lambda tests