Add config file and fix error test condition.