Fix test cross browser compatibility