Use proper scrollTo instead of setting non-existing scrollY. Added basic tests.