Fixed the test in case the serial port is not available