Add tests for scroll listener feature