Fix consistent id tests on IE8

IE8 doesn't support `func.name`