Changed tests to base-range from min-max comparisons.