fix load_from_cfg bug
delete to-do comment
fill test case