Added non regression tests for GROOVY-6731