Migrating tests to JUnit

- Migrating tests to JUnit;
- Turning off test class detection for Gradle due to compatibility problems with the JDK 8.