findIndex functionality and tests