escape spaces in JAVA_HOME

fix 3725
Check if nodes have been shut down in TestCluster#beforeTest

The test cluster ignored randomly teared down nodes in tests.
This commit also adds some debug logging to the TestCluster#beforeTest
method.
Updated outdated default setting in doc.