unit test for scrolling char buffer