GRADLE-3157 Test class detection fails when using jdk8 '-parameters' compiler option

See [JIRA issue](https://issues.gradle.org/browse/GRADLE-3157).