added test for percentile_by_bin