Added non regression test for GROOVY-6602