Fix test codes
Support fast-setup
Improve behavior when global config is not found