modify test again. It's strange that makeNetwork function has problem under BATCH mode.