unit tests for config file, currently code coverage is 50%
added more test cases, coverage is not 67%
Merge pull request #136 from shermdog/unit-tests

Unit tests cherry-picked from Nitin