Can you modify this test to check the following fraction instead 
```
fraction_weight = weights / total_weight
(0, np.min(fraction_weight) / 2, np.min(fraction_weight), np.mean(fraction_weight),
 np.max(fraction_weight), np.max(fraction_weight) + np.min(fraction_weight), 0.5)
```
?