Fix tests failing in IE 9