Fix tests cleanup in IE