Fixed tests not running to calling loadConfig before it's defined