Repackage.
Move tests to groovy package to be able run tests on gradle test task. And test stability improvements.