edited serial_test