 		}
 	}
 	if(!connected){
-		dbgSerial.print("[### Failed to connect to WiFi ###]");
+		dbgSerial.println("[### Failed to connect to WiFi ###]");
+		testFailed();
 	}
 	
 	delay(5000);	

	if(Serial.find("OK")){
		dbgSerial.println("[Module Responded OK]");
	}
	
	delay(500);
	

	if(Serial.find("OK")){
		dbgSerial.println("[Module Responded OK]");
	}
	else {
		testFailed();
	}
	
	dbgSerial.println("[Attempting to connect to WiFi]");
	bool connected = false;
	for (int i = 0; i < 5; i++){
		if(connectWiFi()){
