add multi-instance testing into test.sh