setup tests, added basic preloader, and scroll direction detection