fix minor bugs. add config parser test cases