add test for findIndex method, ready for code