GROOVY-6840: Add Test Case for Empty Lists