GROOVY-4993: Added more tests.