Test serial port write