use config file; fix test case.