add unit tests for main.load_config