failOnScroll doesn't appear to provide any real abstraction - just put your assert here directly instead.