* Add test case for type defined using default_args * Refactor build_from_cfg * Update exception of missing type * pre-commit * Fix default_args is None * pre-commit * Bring back test * Update exception raising