Add scrolling unit test

Added a unit test to validate that the computed position didn’t take
scrolling into account