fix unit test cleanup in IE9