Add test mock for Device::SerialPort.
Add changes.