Fix/avoid failing tests under IE8