Little cleaning and testing of LoadConfig