Fix ui hooks tests on IE