GROOVY-6135 add test to avoid regression