Add test case for GROOVY-7124