This fixes the 'should get bins with min >= start and max <= end' test case but probably breaks a number of other cases (those with no start and/or no end).
This fixes the 'should get bins with min >= start and max <= end' test case but probably breaks a number of other cases (those with no start and/or no end).