Thanks Adam for the scripts !
In order to test serial communication Linux has a great feature where you can create virtual serial ports and connect them to each other. A serial loopback ! :)
# terminalEmulation.sh
#Terminal emulation script by Adam Harris