The Cow - 2:155 We will test you with fear, hunger, loss of money, lives, and crops. Give good news to those who are patient.
Example of a test with crop loss:
The Cattle/6:42 And We sent messengers to the people before you, and We tested them with hardship and distress so that they might supplicate.
The Cattle/6:43 If only they had supplicated when We afflicted them! But their hearts hardened, and Satan made their deeds appear to them as adornment.

The Heights/7:94 Whenever We sent a messenger to a land, We afflicted its people with hardship and distress so that they might beg.
The Heights/7:130 And We sentenced the party of Pharaoh to years of drought and famine so that they might be admonished.