GROOVY-6693 adding regression test