fix reorg testing tool.