Trimming messages before adding them, to avoid blank lines
Adding better assertion error in the scroll tests
Updated changes