add a simple test for serial port