added tests for findIndex