fix check on ret value and add test case
Before creating any new configure files (.conf) read the CONF_FILES_README.md