Move loadConfig to main method
Add minimal unit test