add test_config.cfg and modify test process