add test for findIndex method, ready for code

Please write code for findIndex test cases