Fixing scroll bars related failing tests on Mac OS

This commit fixes 2 failing tests on Mac OS. On this operating system, scroll bars do not take any space (they are hidden most of the time, and even when they are displayed, they are displayed on top of the content without changing the layout).