Fixing tests for Safari.