extended localHost_test, writing config to disk and splitting off test cluster creation as a separate function