scrollHistory added with unit tests.