Small changes to serial_test.py