Tests: fix Safari userAgent detection