tests: Remove serialport dependency.