Fix tests for IE9