Add new test case for findFirst and findLast function.