adapted tests to serialport api