Fix QUnit tests in Firefox

Change-Id: Iab212a91b5a8a2c65e7c116b1cf15cd77d77f222
Merge "Fix QUnit tests in Firefox"