create config file test cases
fix not initialized pointer bug