Added a test case to check max height before scrollbars are added