I think this subject I'm about to raise is quite sensitive. Its sensitive for every Christian and Atheist alike.
Is God in control of our lives? If He is, does he allow bad things to happen? If He does allow them to happen, then is He to blame when they do happen?
Its a sensitive issue because many many people have suffered from things out of their control and felt that God was testing them, or that He had some involvement and could have prevented it.
What can I tell these people?
I answered one person who I've just met, and I know he has suffered greatly in life. I told him that I don't think that God puts on you bad things or wants bad things to happen to you - not at all, but your love for God should not change when bad things do happen.
I said it was like a marriage. If you are married to someone who loves you when you are poor and have no money, then when you are rich and do have something, you won't look at her as if she's just there for the good times.
We could even argue that Why did God allow Adam to eat from the Tree? Why did He create for him Eve who was to badly influence him?
If you look carefully at this story in Genesis, you will see that God chastised Eve for listening to the serpent, however, He chastised Adam for listening to his wife. What does this mean? Well, my 2 cents is that: Even though we are surrounded by people who love us, by those we trust, ultimately, this is a perfect example in putting one's trust in people and one's trust in God. In putting my trust in God MEANS that I should not make concessions on what He tells me. I HAVE TO BELIEVE that His advice (or commandments) IS BETTER FOR ME (i.e. its the BEST for me) than whatever ANYONE else tells me - even my wife, brother, sister or mother.
Indeed we are influenced by many things in life, yet we have to make the decision to trust in God's commandments.
So the question remains, if you have prayed for something (like protection) and something awful happens after you've prayed for it, what should you make of it? Is God testing you?