Fix unit test timing issue for IE