change test to be able to handle lambda forms
GROOVY-6522: Perform generic type inference with implicit closure coercion