Made test work in all browsers

Change-Id: Id3b1edeb121b353fa5c83bbef052fbde2d1e8ae4