I'm once again looking at Ronald Allen and Clark Williamson's Preaching the Letters without Dismissing the Law. They stress that we shouldn't assume that every bad thing that happens to us was planned that way be God. Rather, as they put it, "They arise simply from the fallen nature of the world. Paul's enduring point is that God is faithful, and the divine presence makers it possible for us to live though such experiences."
Another thing that Allen & Williamson find problematic in this text is verse 11, "These things happened to them to be an example for us." We can agree with Paul that other people's failures and successes can help us as we go through our own lives, but we don't have to assume that their lives weren't pretty important to the folks living them.
And, I do agree that good and bad examples can be instructive. And, I agree that being a good example is not always easy. And, further, I agree with the last part of verse 13, that when we are tested, God will provide a way for us to respond and to endure.