test: Add some new lines in input.
Allow port routing to be canceled. It is needed for serial ports.
Add support for clearing serial port connections.