Improve tests stability for old Safari