anchor.diff:        }).then((_) => serial.close());
       });
   
  +
       test('Fail when close and not open', (){
         var serial =  new SerialPort(dummySerialPort.path);
         serial.close().catchError((error) => expect(error, "${dummySerialPort.path} is not open"));
  
positive.code:                       serial.close();
                     });
      });
      /* */
      test('Read bytes', (){
        var serial =  new SerialPort(dummySerialPort.path);
  
        final t = new Timer(new Duration(seconds: 1), () {
          fail('event not fired in time');
        });
  
        serial.open().then((_){
          serial.onRead.first.then((List<int> bytes) {
            expect(bytes, "Hello".codeUnits);
            serial.close();
            t.cancel();
          });
        });
  
        // when
        dummySerialPort.writeAsStringSync("Hello");
      });
  
  
      test('Defaut baudrate 9600', () {
        var serial =  new SerialPort(dummySerialPort.path);
  
negative.code:     });
      tearDown(() => dummySerialPort.delete());
  
      test('Detect serial port', (){
        SerialPort.avaiblePortNames.then((names){
          // Not easy to have test for all Plateform. The minimal requiment is nothing detected
          expect(names, isNotNull);
        });
      });
  
      test('Open', () {
        var serial =  new SerialPort(dummySerialPort.path, baudrate: 9600);
  