fix unit tests throw in IE