fixed warning (float->int), changed parameters for test_weight_noise to avoid false negatives