It was and is the plan of God to give us power and will to do as we like...
It was and is the plan of God to give us power and will to do as we like, because only then can we be responsible for our good or evil deeds. And only then can we feel that we have achieved something worth its name. Thus God gave us the will and power to act according to our will. And after this bestowing of power, we were sent to this world to be tested.
Try to visualize this world in this light: There is a tyrant king, trying to capture the world and eliminate the God‑loving people from this earth. He goes against the requirements of God to rule justly and mercifully He is thus failing in his test. On the other side are his God‑loving subjects. What is expected of them? They are expected to live a virtuous life, and to persuade others to follow their example.
They feel that God expects them to warn their tyrant ruler because it is the only way to save him from eternal disgrace, and to save his victims from his cruelties. If they choose not to interfere, they too will fail in their test. If they opt to follow the command of God they are performing their duty towards themselves, towards mankind and towards God.
What follows now is either of the two things: either the king accepts their advice, heeds their sermons and follows them onto the path of God; or he ignores their warning and returns to his old tactics. If he follows their advice and returns to the path of God, then it is good for everyone: the virtuous people did their duty by warning him; and he did his own duty by following their advice. All pass the test with flying colours.
But if he ignores their warnings and wants to remove them from his way, then he loses every chance of success in this most important test. But what should be the course of action for those virtuous people? Should they surrender to the king's godlessness, or should they continue in their efforts to make him amend his ways? If they surrender, the success which they have achieved so far would turn into failure.
If they do not surrender, they would have no alternative but to endure the hardships inflicted by that tyrant. To summarize, we can say that (1) every person is, being tested in this world; (2) everybody provides a chance of test for others, as well as for himself. For example, if an ill‑tempered person harms his neighbour, he is failing in his test; but at the same time he is providing a test for his neighbour also.