Functional style in groovy with Spock tests