PROW-154: Fixing IndexOutOfBoundsException when number of the new test range was smaller than existing. Also doing better comparison of the ranges, not assuming they're in the same order and allowing multiple declarations of a single bucketVal +review CR @parker
PROW-154: Refactoring duplicate code into helper +review CR-11405
Merge branch 'PROW-154' into 'master'

Fix IndexOutOfBoundsException during autopromote of test when comparing allocations

See merge request !4