[PLAT-5284] getLowerBoundIndex in FunctionUtils corrected

Relevant tests added