Don't use Array.indexOf in tests so they can properly run in IE8