Removes percentage constraint and adds tests to weighted_sample