Sometimes weighted_median fails tests. Find out if it's because of a bug in the algorithm or the test.