Added tests for findIndexBy