Fixed the Gradle daemon loading problem in test code.
Fixed test code, so that it no longer fails on Windows.