GROOVY-4663: fixed test-case on linux