Made the test code more robust. Except that it is now fails to connect to the Gradle daemon :).