minimal refactoring after GROOVY-6217: updated copyright, use power asserts