findIndex test working