fix error calculating inverse CDF for upper hull.
initialize test for inverse CDF