The book of Job is very similar to many parts of Genesis. Such as the creation in Genesis 1-3, in Noah's ark, and in the story of Abraham and Yosef. They all have a similar story. God who is insecure about himself wants to know if humans he made worshipped him. Even though he is God and knows all. So he then usually continues by giving a human a task to see if they worship him. But the task isn't simply pray to me for 5 years. No, it's some ridiculous task, like to kill you own son. Or to not eat from, a tree even though humans can't resist temptations. Although this part is not carried out in Noah's Ark, there are other traits in it that connect to the book of Job. In all of these parts of Genesis God gets mad, and then makes some overkill punishment for doing something he knew was gonna happen. In Adam and Eve, he knows Eve will eat from the tree because God specifically tells them not to eat from the tree because it grants wisdom. Who wouldn't be tempted by something so powerful in the reach of your hands. He then goes on by punishing all of mankind by making humans feel pain. In Noah's Ark, people are being loud, well he created man didn't he? So why can't he just make them be quiet. Instead he makes a huge flood destroying everyone but one person, Noah. In the story of Abraham and Yosef he makes Abraham kill his own son, because he is insecure and wants to see there loyalty. . Why didn't he just make man to always worship him. Overall a lot of parts in Genesis follow a format kind of like Hero's Journey. First there's a problem, then God makes a huge task to fix the problem. Then he gets mad and makes a huge deal out of everything and makes a huge punishment.