Fix tests for Safari 6.