test for weighting corrctly