Removed risky Array.prototype.indexOf from tests