Added a fix to prevent random failures of some data-inview test cases