Fixed test to work on older versions of Gradle.