Fix tests for IE8