Added tests to cover reading from the serial stream