test for upper_count_bound in discretizer