fix the problem that wifiManager is undefined to break tests