This doesn't actually test the function's expected behavior. I'd say use $scrollTop instead, and check that it's 0 for the right element.