add test to reproduce #300 and fixed with change load_config method