Is it a scenario planned by the Creator Of All? Or, is it the yin-yang nature of things? One day good, one day bad, one day sunny, next cloudy.
But the human mind wants to make a commotion about it: heaven, hell, sin... but the flowers could care less, and the birds flap their wings not as a test.
I submit that life is a game to discover true you, That path ultimately leads to a realization that you are the Creator. Then praise and gratitude abound.