Removed direct use of unsafe classes from test cases. Replaced Maven by Gradle.