Fixed last point handling: now we try to check interval with last point instead of adding it to output set of points. Test case for issue CR25489 Correction of test case for issue CR25489