move unittest script to tools