fix tests in safari