test reading serial ports