Refactored Method to make it more testable
Refactored Config Model methods to be more testable
Adding unit tests