Improve test stability for old Safari